home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-02 / fgl110c.zip / 12-02.C < prev    next >
Text File  |  1992-01-31  |  275b  |  19 lines

  1. #include <fastgraf.h>
  2. #include <stdio.h>
  3.  
  4. void main(void);
  5.  
  6. #define ESC 27
  7.  
  8. void main()
  9. {
  10.    unsigned char key, aux;
  11.  
  12.    do {
  13.       fg_waitfor(9);
  14.       fg_intkey(&key,&aux);
  15.       printf("key = %3d  aux = %3d\n",key,aux);
  16.       }
  17.    while (key != ESC);
  18. }
  19.